﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/managemain.Master" AutoEventWireup="true" CodeBehind="corpmanager_set.aspx.cs" Inherits="uswinweb.admin.corpmanager_set" %>
<%@ Register TagPrefix="win" TagName="corpmanagers" Src="~/datacontrol/corpmanagerList.ascx"%>
<asp:Content ID="Content1" ContentPlaceHolderID="headcontent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="maincontent" runat="server">
<input type="button" id="reclick" name="reclick" onclick="reclcik();" style="display: none"  />
<div class="cot">
	<div class="adnr">
		<p class="adnrt">
			<input name="search_txt_name" id="search_txt_name" class="soon" type="text" style="width:200px;" />
			<input name="" class="soso" type="button" value="搜索" onclick="search()" />
		</p>
		<ul class="adnr2 mar_top">
            <li><a href="../admin/pop_corpmanager_set.aspx" rel="iframe" title=" 权限新增 :: :: width:700,height:600" class="lightview">新 增</a></li>
			<li><a href="#" onclick="del('all')">批量删除</a></li>
		</ul>
		<div class="adnr3" >
            <div id="corpmanagedata">
            <win:corpmanagers runat="server" ID="corpmanage" />
            </div>
		</div>
		<i class="tp"></i><i class="bt"></i>
	</div>
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="footcontent" runat="server">
<script type="text/javascript">
    function del(delvalue) {
        if (confirm("该操作不可恢复,您确定要删除吗?")) {
            if (delvalue == "all") delvalue = checkedlist("ids");
            AjaxHelper.Updater('corpmanagerList.ascx', 'corpmanagedata', 'delstr=' + delvalue + '&search_txt_name=' + encodeURIComponent(document.getElementById('search_txt_name').value));
        }
    }
    function reclcik() {
        search();
    }
    function search() {
        AjaxHelper.Updater('corpmanagerList.ascx', 'corpmanagedata', 'search_txt_name=' + encodeURIComponent(document.getElementById('search_txt_name').value));
    }
</script>
</asp:Content>
